/**
 * This file is part of the CAKIS project.
 * 
 * Copyright (c) 2009-2010 - Florian Arndt, Christian Kerl
 * 
 * @license GNU Lesser General Public License v3 <http://www.opensource.org/licenses/lgpl-3.0.html>
 * @since   13.05.2010
 * @version SVN: $Id: NullLog.java 126 2010-05-13 12:36:33Z christian-kerl@web.de $
 */
package org.cakis.server.service.util;

import org.jboss.seam.log.Log;

/**
 * NullLog implements Seam's {@link Log} interface. It should be used as default
 * value for {@link Log} fields, so UnitTests don't have to start an EJB Container.
 *
 * @author Christian Kerl
 */
public class NullLog implements Log {
    public static final Log DEFAULT = new NullLog();

    @Override
    public void debug(Object object, Object... params) {
    }

    @Override
    public void debug(Object object, Throwable t, Object... params) {
    }

    @Override
    public void error(Object object, Object... params) {
    }

    @Override
    public void error(Object object, Throwable t, Object... params) {
    }

    @Override
    public void fatal(Object object, Object... params) {
    }

    @Override
    public void fatal(Object object, Throwable t, Object... params) {
    }

    @Override
    public void info(Object object, Object... params) {
    }

    @Override
    public void info(Object object, Throwable t, Object... params) {
    }

    @Override
    public boolean isDebugEnabled() {
        return false;
    }

    @Override
    public boolean isErrorEnabled() {
        return false;
    }

    @Override
    public boolean isFatalEnabled() {
        return false;
    }

    @Override
    public boolean isInfoEnabled() {
        return false;
    }

    @Override
    public boolean isTraceEnabled() {
        return false;
    }

    @Override
    public boolean isWarnEnabled() {
        return false;
    }

    @Override
    public void trace(Object object, Object... params) {
    }

    @Override
    public void trace(Object object, Throwable t, Object... params) {
    }

    @Override
    public void warn(Object object, Object... params) {
    }

    @Override
    public void warn(Object object, Throwable t, Object... params) {
    }

}
